package com.jade.store.wechat.biz.protocol.menu;


import com.jade.bss.db.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 微信菜单策略
 * User: Administrator
 * Date: 2016-2-24
 * Time: 18:59
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_WX_MENU_TACTICS_DETAIL")
public class MenuTacticsDetail extends IdEntity {
    public static final String TYPE_CLICK = "click";
    public static final String TYPE_VIEW = "view";

    //获取自定义菜单配置接口
    public static  final  String get_current_selfmenu_info="https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info?access_token=ACCESS_TOKEN";
    //类型
    @Column(name = "type")
    private String type;
    @Column(name = "name")
    private String name;
    @Column(name = "key")
    private String key;
    @Column(name = "url")
    private String url;
    @Column(name = "store_id")
    private long storeId=0;
    @Column(name = "parent_id")
    private long parentId=0;
    /**
     * 排序
     */
    @Column(name = "sort")
    private int sort=0;
    /**
     * 级别
     */
    @Column(name = "level")
    private int level=0;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getStoreId() {
        return storeId;
    }

    public void setStoreId(long storeId) {
        this.storeId = storeId;
    }

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
